﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity.File
{
    /// <summary>
    /// 文件信息表
    /// </summary>
    public class TB_FileInformation : EntityBase_LONG
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required, MaxLength(256)]
        public string Name { get; set; }
        /// <summary>
        /// 后缀
        /// </summary>
        [Required, MaxLength(16)]
        public string Extension { get; set; }
        /// <summary>
        /// 文件类型Id
        /// </summary>
        [Required, MaxLength(16)]
        public int FileTypeId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        [Required]
        public int UserId { get; set; }
        /// <summary>
        /// 大小
        /// </summary>
        [Required]
        public double Size { get; set; }
    }
}
